package com.csy.property.community.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 树形对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoomTree {

    //编码
    @JsonSerialize(using = ToStringSerializer.class)
    private Long code;
    //名
    private String name;
    //子集合
    List<RoomTree> children;


}
